package com.yhans.service;

import com.yhans.entity.PageResult;
import com.yhans.entity.QueryPageBean;
import com.yhans.pojo.Setmeal;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface SetmealService {

    void add(Setmeal setmeal, Integer[] checkgroupIds) throws IOException;

    PageResult pageQuery(QueryPageBean queryPageBean);

    Setmeal findById(Integer id) ;

    ArrayList<Integer> findCheckGroupIdsBySetmealId(Integer id);

    void edit(Setmeal setmeal, Integer[] checkgroupIds) throws IOException;

    void delete(Integer id) throws IOException;

    List<Setmeal> findAll();

    //自己测试
    Setmeal testFindById(Integer id);

    //查询套餐名称和预约数量
    List<Map<String, Object>> findSetmealCount();
}
